package day021.tcp.demo1;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

public class TcpClient {
    public static void main(String[] args) throws IOException {
        Socket client = new Socket("127.0.0.1", 9090);
        OutputStream netOutput = client.getOutputStream();
        netOutput.write("你好".getBytes());


        netOutput.close();
        client.close();
    }
}
